const defStoreKey = 'store';
function forEachValue(obj, fn) {
  Object.keys(obj).forEach(key => fn(obj[key], key));
}

function isPromise(target) {
  return target && typeof target.then === 'function';
}

export { defStoreKey, forEachValue, isPromise };
